package com.cyclasoft.projects.ledom.dataload;

import java.util.ArrayList;
import java.util.List;

import com.cyclasoft.commons.collections.Pair;
import com.cyclasoft.projects.ledom.core.DataLoaderParam;
import com.cyclasoft.projects.ledom.core.IDataLoader;

public class ListDataLoader implements IDataLoader
{

	@Override
	public Object load(DataLoaderParam param)
	{
		ArrayList<Object> ret = new ArrayList<Object>();
		for(Pair<String, Object> p : param.getParams())
		{
			ret.add(p.getRight());
		}
		return ret;
	}

}
